package com.zeyuan.rpcclient.test;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.ServerSocketChannel;

public class a {

    public static void main(String[] args) throws IOException {
        ServerSocketChannel ssc=ServerSocketChannel.open(); //创建服务器
        ssc.bind(new InetSocketAddress(8888)); //绑定端口
        while (true){
            ssc.accept();//与所有客户端建立连接

        }
    }
}
